//
//  MainCellBase.m
//  VideoDiaryClass
//
//  Created by Wang Haitao on 15/10/19.
//  Copyright © 2015年 qianfeng. All rights reserved.
//

#import "MainCellBase.h"

@implementation MainCellBase

- (void)setDiary:(Diary *)diary
{
    previewImageView_.image = [UIImage imageWithContentsOfFile:diary.imagePath];
    timeLabel_.text = diary.displayTime;
    contentLabel_.text = diary.content;
    
    videoFrameImageView_.tintColor = diary.color;
    videoFrameImageView_.image = [[UIImage imageNamed:@"videoFrame"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
}

@end
